package tank;

public class Tank implements IProduct {
	
	private Body body;
	private Engine engine;
	private Turret turret;



	public void installFirstPart(IProductPart first) {
		this.body = (Body)first;
		System.out.println("Body is installed");
		
	}

	
	public void installSecondPart(IProductPart second) {
		this.engine = (Engine) second;
		System.out.println("Engine is installed");
		
	}

	
	public void installThirdPart(IProductPart third) {
		this.turret = (Turret) third;
		System.out.println("Turret is installed");
		
	}
	

}
